import java.awt.*;
public class TestPanelClass
{
	public static void main(String []args)
	{
		Awt a=new Awt(300,300,300,170);
	}
}

class Awt extends Frame
{
	public Awt(int x,int y, int w ,int h)
	{
		Panel p=new Panel(null);
		setLayout(null);
		setBounds(x,y,w,h);
		setBackground(Color.RED);
		p.setBounds(w/3,h/3,w/3,h/3);
		p.setBackground(Color.YELLOW);
		add(p);
		setVisible(true);
	}
}